import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import tensorflow.examples.tutorials.mnist.input_data as input_data
mnist_no_one_hot=input_data.read_data_sets('MINST_data/',one_hot=False)
# print(mnist_no_one_hot.train.labels[0:15])
# print('验证集',mnist_no_one_hot.validation.images.shape,
#       '测试集',mnist_no_one_hot.validation.labels.shape)
x =np.array([[-3.1,1.8,9.7,-2.5]])
pred = tf.nn.softmax(x)
sess=tf.Session()
v=sess.run(pred)
print(v)